package com.easytake.emotioncat.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 反馈记录表
 * </p>
 *
 * @author baomidou
 * @since 2022-11-02
 */
@Getter
@Setter
@Schema(title = "意见反馈对象")
public class EmFeedbackParam implements Serializable {

    @Schema(title = "反馈类型 1-产品建议 2-系统错误 3-其他问题")
    @NotNull(message = "反馈类型不能为空")
    @Min(value = 1, message = "反馈类型只能为1-3")
    @Max(value = 3, message = "反馈类型只能为1-3")
    private Integer category;

    @Schema(title = "反馈内容")
    @NotBlank(message = "发布内容不能为空")
    private String content;

    @Schema(title = "图像url集合，使用;拼接")
    private String images;

    @Schema(title = "联系方式")
    private String contact;
}
